//Source file: D:\\test\\com\\ce\\pms\\charge\\model\\PeriodSetDomain.java

package com.ce.pms.charge.model;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:收费周期设置 关联数据表:FEE_PERIOD_SET
 */
@Entity
@Table(name = "FEE_PERIOD_SET")
public class PeriodSetDomain implements IDomainObject{

	/**
	 * 关键字
	 */
	@Id
	@GeneratedValue
	@Column(name = "PERIOD_SET_ID")
	private Long keword;

	/**
	 * 收费周期长度
	 */
	@Column(name = "PRD_LENGHT", nullable = false)
	private Short prdLength;

	/**
	 * 周期单位
	 */
	@Column(name = "PRD_UNIT", nullable = false, length = 10)
	private String prdUnit;

	@Embedded
	private SysInfo sysInfo;

	/**
	 * @roseuid 48757D16009C
	 */
	public PeriodSetDomain() {

	}
	/**
	 *
	 * @param prdLength 收费周期长度
	 * @param prdUnit   周期单位
	 * @param sysInfo   系统信息
	 */
	public PeriodSetDomain(Short prdLength, String prdUnit, SysInfo sysInfo) {
		this.prdLength = prdLength;
		this.prdUnit = prdUnit;
		this.sysInfo = sysInfo;
	}

	public Long getKeword() {
		return keword;
	}

	public void setKeword(Long keword) {
		this.keword = keword;
	}

	public Short getPrdLength() {
		return prdLength;
	}

	public void setPrdLength(Short prdLength) {
		this.prdLength = prdLength;
	}

	public String getPrdUnit() {
		return prdUnit;
	}

	public void setPrdUnit(String prdUnit) {
		this.prdUnit = prdUnit;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}


}
